package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.domain.SystemCall;
import cn.wolfcode.trip.base.mapper.SystemCallMapper;
import cn.wolfcode.trip.base.service.ISystemCallService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SystemCallServiceImpl implements ISystemCallService {

    @Autowired
    private SystemCallMapper systemCallMapper;


    @Override
    public void deleteByPrimaryKey(Long id) {
        systemCallMapper.deleteByPrimaryKey(id);
    }

    @Override
    public void insert(SystemCall systemCall) {
         systemCallMapper.insert(systemCall);
    }

    @Override
    public SystemCall selectByPrimaryKey(Long id) {
        return systemCallMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<SystemCall> selectAll(Long userId) {
        return systemCallMapper.selectAll(userId);
    }

    @Override
    public int updateByPrimaryKey(SystemCall systemCall) {
        return systemCallMapper.updateByPrimaryKey(systemCall);
    }

    @Override
    public Long[] selectAllUserId() {
        return systemCallMapper.selectAllUserId();
    }
}
